import React from 'react'
import Luenbo from '../../components/luenbo'
import { Button, Input, NavBar } from 'antd-mobile'
import { useSelector } from 'react-redux'
import { NavLink, useNavigate } from 'react-router-dom'
function Index() {
    const naviagte=useNavigate()
    const {start,end,data}=useSelector(state=>state.home)
    // console.log(start,end,data);
    const navigate=useNavigate()
    const {cont}=useSelector(state=>state.cont)
    // console.log(cont);
    
  return (
    <div>
      <NavBar backIcon={false} left={<span onClick={()=>navigate('/my')}>{cont}</span>} >首页</NavBar>
      <Luenbo></Luenbo>

      <div>
        <div style={{display:'flex'}}>
            <Input value={start}></Input>
            <Input value={end}></Input>
        </div>
        <Input value={data}></Input>
        <Button onClick={()=>naviagte('/liebiao')}>查询</Button>

      </div>
    </div>
  )
}

export default Index
